<?php
/*
	
*/
defined('BY_JYA') or exit('Access Denied');
global $_RQ,$_AR;
$_RQ['op']=$_RQ['op']?$_RQ['op']:'main';
if($_RQ['op']=='main'){
	$return['list']=array();
	set_html('title','作品费用记录');
	exi($return);
}
if($_RQ['op']=='getlist'){
	$params=array('uniacid'=>$_SESSION['uniacid'],'mid'=>$_SESSION['uid']);
	$pindex = max(1, intval($_RQ['page']));
	$psize = 10;
	$list=pdo_getslice('jy_vote_upfeelog',$params,array($pindex,$psize),$total,$fields,'','id desc');
	foreach($list as &$item){
		$item['createtime']=date('Y-m-d H:i:s',$item['createtime']);
		$item['member']=cfc('core')->member_show($item['mid']);
		$item['opus']=pdo_get('jy_vote_opus',array('uniacid'=>$_SESSION['uniacid'],'id'=>$item['pid']));
		$item['reply']=pdo_get('jy_vote_reply',array('uniacid'=>$_SESSION['uniacid'],'id'=>$item['rid']),'title');
	}
	$return['list']=$list;
	exi($return);
}